package com.swt.testdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/16 14:46
 **/
@Data
@ApiModel(value = "查询法律法规表单")
public class  QueryLawForm {

    @ApiModelProperty(value = "页码",example = "1")
    @Min(1)
    private Integer page;

    @ApiModelProperty(value = "每页数量",example = "10")
    @Range(min = 5,max = 50,message = "每页数量必须在5到50之间")
    private Integer limit;

    @ApiModelProperty(value = "法律法规标题过滤",example = "环境监理执法标志管理办法")
    private String titleFilter;

    @ApiModelProperty(value = "发布部门过滤",example = "国家环保局")
    private String publishDeptFilter;

    @ApiModelProperty(value = "发布开始时间过滤",example = "2020-02-02")
    private String publishStartDateFilter;

    @ApiModelProperty(value = "发布截至时间过滤",example = "2020-05-09")
    private String publishEndDateFilter;


    @ApiModelProperty(value = "实施开始时间过滤",example = "2020-03-01")
    private String implementStartDateFilter;


    @ApiModelProperty(value = "实施截止时间过滤",example = "2020-05-06")
    private String implementEndDateFilter;

    @ApiModelProperty(value = "法律法规模板过滤")
    private Integer templateIdFilter;


}
